package com.example.demox3;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author liyh <levart@163.com>
 * @version 20210420
 */
@RestController
public class DemoController {

    @RequestMapping("/index")
    public Object index(){
        Map<String,Object> rMap = new HashMap<>();
        rMap.put("data","test");
        return rMap;
    }

}
